package com.pig4cloud.pig.module.api.entity.product;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 暖心宝上传记录，打款记录对象 warm_heart_cash_record
 *
 * @author ruoyi
 * @date 2022-10-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("warm_heart_cash_record")
public class WarmHeartCashRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Integer userId;

	/**
	 *  订单投保人数
	 */
	private Integer userCount;

	/**
	 *  提交人手机号
	 */
	private String phoneNum;

    /**
     * 用户的openid
     */
    private String openId;

    /**
     * 上传支付订单界面
     */
    private String imgUrl;

	/**
	 *  系统订单号
	 */
	private String tradeNo;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 状态  0 - 未审核 1 - 审核通过 2 - 审核失败
     */
    private Integer state;

    /**
     * 上传时间
     */
    @TableField(fill = FieldFill.INSERT)

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 支付状态
     */
    private Integer payState;

    /**
     * 支付时间
     */

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;

    /**
     * 响应码
     */
    private String errCodeDes;

    /**
     * 结果码
     */
    private String resultCode;

    /**
     * 支付结果
     */
    private String payResult;

    /**
     * $column.columnComment
     */
    private String payStr;

    /**
     * $column.columnComment
     */
    private String rebackStr;

    /**
     * 物业经理推广人id
     */
    private Integer agId;

    /**
     * 物业经理推广人openid
     */
    private String agOpenId;

    /**
     * 物业经理推广人支付金额
     */
    private BigDecimal agPayMoney;

    /**
     * 物业经理推广人支付状态
     */
    private Integer agPayState;

    /**
     * 物业经理推广人支付时间
     */

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date agPayTime;

    /**
     * 物业经理推广人支付码
     */
    private String agErrCodeDes;

    /**
     * 物业经理推广人支付结果
     */
    private String agPayResult;

    /**
     * 物业经理推广人结果码
     */
    private String agResultCode;

    /**
     * $column.columnComment
     */
    private String agPayStr;

    /**
     * $column.columnComment
     */
    private String agRebackStr;


	private Long checkSysUserId;

	private String checkSysUserName;


	private Integer checkState;

	private String checkResult;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date checkTime;


    @TableField(exist = false)
	private String nickName;


	@TableField(exist = false)
	private String faceUrl;


	/**
	 * 上传支付订单界面
	 */
	@TableField(exist = false)
	private String imgUrlPath;


	/**
	 * 上传支付订单界面
	 */
	@TableField(exist = false)
	private String beginDate;


	/**
	 * 上传支付订单界面
	 */
	@TableField(exist = false)
	private String endDate;
}
